/*************************
test methods for OOR 148.

*************************/
@isTest
private class TestMethods_148Series{

    static testMethod void testOORSyncAssignmentGroupMember() {
     List<Assignment_Group_Name__c> AsList = new List<Assignment_Group_Name__c>();   
        Assignment_Group_Name__c ASGroup =  new Assignment_Group_Name__c();
        ASGroup.Name = 'OOR Leads Reassignment - [RCB]';
        ASGroup.Type__c = 'Lead';
        ASGroup.Office_Code__c = 'RCB';
        ASGroup.Round_Robin__c = TRUE;
        AsList.add(ASGroup);
        
        Assignment_Group_Name__c ASGroup2 =  new Assignment_Group_Name__c();
        ASGroup2.Name = 'OOR Leads Reassignment - [NOJ]';
        ASGroup2.Type__c = 'Lead';
        ASGroup2.Office_Code__c = 'NOJ';
        ASGroup2.Round_Robin__c = TRUE;
        AsList.add(ASGroup2);
        
        Insert AsList;
        
        profile profid = [Select Id from profile q where profile.Name ='SFA OOR Media Consultants'];
        id masterrole  = [select id from userRole where name =:'Information Systems'].id;
        User nuser = new User();
        nuser.UserName = 'oorTestUser@atti-temp.com';
        nuser.LastName = 'oor SLC';
        nuser.Email = 'oor_test@atti.com';
        nuser.Alias = 'Aas';
        nuser.CommunityNickname = 'oorTest';
        nuser.TimeZoneSidKey = 'America/Los_Angeles'; 
        nuser.LocaleSidKey = 'en_US';
        nuser.EmailEncodingKey = 'UTF-8'; 
        nuser.ProfileId = profid.id ; 
        nuser.UserRoleId = masterrole;
        nuser.LanguageLocaleKey = 'en_US';
        nuser.SFA_Office__c = 'RCB' ;
        nuser.Isactive =true;
        insert nuser;
        nuser.SFA_Office__c = 'NOJ';
        update nuser;
   } 
   
   //static testMethod void testOptySplits() {
}